<@master template="master/master-loan"  title="银行放款数据">

	<form action="/bank/loan_list" method="post"  onsubmit="return check();" data-action-html="#action_load_body">
	   <div class="detailsBox ">
             <h3 class="mt20">银行数据查询</h3>
	         <div class="detaiTab ">
                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                            <tr>
                                <td width="15%" align="right" class="bg">货款单号:</td>
                                <td width="35%"><input type="text" name="billCode" class="tabInp"  value="${vo.billCode}" id="billCode"></td>
                                <td width="15%" align="right" class="bg">放款银行:</td>
                                <td><@select dataSouceType="BANKTYPEO2O" name="loanBank" id="loanBank" value="${vo.loanBank}"/></td>
                            </tr>
                            <tr>	
                                <td align="right" class="bg">实际放款日:</td>
                                <td ><@date  id="loanDate1" name="loanDate1" value="${vo.loanDate1}"/>~<@date  id="loanDate2" name="loanDate2" value="${vo.loanDate2}"/></td>
                                <td align="right" class="bg">贷款类型:</td>
                                <td ><@select name="loanType" dataSouceType="OTO_LOAN_TYPE" value="${vo.loanType}" /></td>
                            </tr>
                            <tr>
                                <td class="bg"></td>
                                <td colspan="3">
                                	<button type="submit" class="btn_auto_30 btn_blue" id="goods_search">查询</button> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                                </td>
                            </tr>
                        </tbody>
                    </table>
              </div>
         </div>
      <input name="showPage" type="hidden" value="0" />
	</form>
	<div class="mt20"><@pagination paginationInfo="paginationInfo"/></div>
	
	
	
<@js>
	function checkFile(){
		var value_gong = $("#fileId").val();
		if(value_gong==""){
			alert("请先上传模板文件！")
			return false;
		}
	}
	
	function check(){
	  var loanDate1=$("#loanDate1").val();
	  var loanDate2=$("#loanDate2").val();
	  var date1 = new Date(loanDate1.replace(/\-/g, "\/"));
	  var date2 = new Date(loanDate2.replace(/\-/g, "\/"));
	  if(date1>date2){
	  	alert("结束时间必须大于开始时间");
	  	return false;
	  }
	}

</@js>
</@master>